home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 2
/
United Public Domain Gold 2.iso
/
utilities
/
pu250.dms
/
pu250.adf
/
Graphics
/
BOBs
/
Example9.h
< prev
next >
Wrap
Text File
|
1992-04-07
|
3KB
|
79 lines
/***********************************************************/
/* */
/* Amiga C Encyclopedia (ACE) V3.0 Amiga C Club (ACC) */
/* ------------------------------- ------------------ */
/* */
/* Book: ACM Graphics Amiga C Club */
/* Chapter: BOBs Tulevagen 22 */
/* File: Example9.c 181 41 LIDINGO */
/* Author: Anders Bjerin SWEDEN */
/* Date: 92-04-07 */
/* Version: 1.00 */
/* */
/* Copyright 1992, Anders Bjerin - Amiga C Club (ACC) */
/* */
/* Registered members may use this program freely in their */
/* own commercial/noncommercial programs/articles. */
/* */
/***********************************************************/
/* The display: */
#define DISPLAY_WIDTH 320 /* The display width. */
#define DISPLAY_HEIGHT 200 /* The height of the display. */
#define DISPLAY_DEPTH 4 /* 4 bitplanes, 16 colours. */
#define DISPLAY_MODES NULL /* Low resolution screen. */
/* Center of the display: */
#define CX (DISPLAY_WIDTH>>1)
#define CY (DISPLAY_HEIGHT>>1)
/* The Sun: */
#define SUN_MASK_SIZE 123
#define SUN_WIDTH 41
#define SUN_WORDS_WIDE 3
#define SUN_HEIGHT 41
#define SUN_DEPTH 3
/* Position of the Sun: */
#define SUN_X CX-(SUN_WIDTH>>1)
#define SUN_Y CY-(SUN_HEIGHT>>1)
/* The Planet: */
#define NR_OF_PLANETS 13
#define PLANET_MASK_SIZE 105
#define PLANET_WIDTH 35
#define PLANET_WORDS_WIDE 3
#define PLANET_HEIGHT 35
#define PLANET_DEPTH 3
/* Startposition of the planet: */
#define PLANET_X 20
#define PLANET_Y CY
/* The planets acceleration: */
#define ACCELERATION 0.1
/* The "range" limits: */
#define LIM0 18
#define LIM1 54
#define LIM2 85
#define LIM3 111
#define LIM4 129
#define LIM5 139
/* The colour "ranges". (When we should start */
/* to increase and decrease the colour values: */
#define A1 20
#define A2 61
#define A3 160
#define A4 259
#define A5 300
/* How much the red colour may vary: */
#define RED_VARIATION 5
/* The minimum red value: */
#define MIN_RED 5